#include <jni.h>
#include <string>
#include "android/log.h"

const char* LOG_TAG = "cppP";

extern "C" {

    JNIEXPORT jstring JNICALL
    Java_com_liu_taketaxione_Jni_stringFromJNI(JNIEnv *env, jobject instance) {

        // TODO
        std::string hello = "Hello from C++";
        __android_log_print(ANDROID_LOG_INFO, LOG_TAG, "%s", hello.c_str());
        return env->NewStringUTF(hello.c_str());
    }

}